package com.superb.system.api.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * @Author: ajie
 * @CreateTime: 2024-07-03 11:03
 */
@Data
@Schema(name = "修改用户基础信息")
public class UpdateCurrent {

    @Schema(description = "头像")
    private String avatar;

    @Email
    @Schema(description = "邮箱")
    private String email;

    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "电话号码不正确")
    @Schema(description = "电话号码")
    private String phoneNumber;

    @Schema(description = "身份证号")
    @Pattern(regexp = "(\\d{15}$ )|(^\\d{18}$ )|(\\d{17}(\\d|X|x)$)", message = "身份证号不正确")
    private String idcard;

    @Schema(description = "昵称")
    private String nickname;

    @Schema(title = "备注", description = "拓展信息")
    private String remarks;

}
